<template>
	<view>
		<view class="header status_bar" :class="scrrol == true ? 'scrrolHeader' : ''">
			<view class="back iconfont icon-xiangzuo1" @tap="backPage"></view>
			<view class="text" :class="scrrol == true ? 'scrrolHeader' : ''">覆约详情</view>
		</view>	
		<view class="bg_box">
			<image class="bg01" src="../../../static/bg05.png" mode="widthFix"></image>
			<view class="bg_content">

				<view class="appoint_box">
					<view class="appoint_text">
						<view class="text_box">
							<view class="title">2024/04/22 签约（元）</view>
							<view class="num">25000.00</view>
							<view class="text">共覆约25124.56元 已结清</view>
						</view>
						<view class="icon iconfont icon-a-icon-gaizhangyijieqing"></view>
					</view>
				</view>
				
				<view class="records_box">
					<view class="records_menu">
						<view class="menu" :class="select == 0 ? 'menucolor' : ''" data-index="0" @tap="setNavMenu">覆约记录</view>				
					</view>
					<block v-for="(item, index) in 6">
						<view class="records_list">
							<view class="text_box">
								<view class="title">
									<view class="name">1期</view>
									<view class="tag">已覆约</view>
									<view class="tag02">本期</view>
									<view class="tag03">逾期3天</view>
								</view>
								<view class="time">2024/05/19</view>
							</view>
							<view class="text_box">
								<view class="money">￥2292.00</view>
								<view class="text"> 含本金1945.75</view>
							</view>
						</view>
					</block>
				</view>
				
				<view class="clear_box04"></view>
								
			</view>
		</view>
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				page:1,
				scrrol:false,
				info:'',
				select:0,
				
			}
		},
		onLoad() {

		},
		methods: {
			setNavMenu(e) {
				let that = this;
				let index = e.currentTarget.dataset.index;
				that.select = index;
				
			},
			setRule(e){
				let that = this;
				let index = e.currentTarget.dataset.index;
				that.flowList[index].tick = !that.flowList[index].tick
			},
			loadData() {
				let that = this;
			// 	that.Net._get('shop_home', {}, res => {
			// 		if (res.code == 200) {
			// 			//console.log(res);
			
			// 		}
			// 	});
			},
			backPage() {
				uni.navigateBack({});
			},
			gotopage(e) {
				let url = e.currentTarget.dataset.url;
				uni.navigateTo({
					url: url
				});
			},

		},
		onPageScroll: function(Object) {
			//console.log(Object.scrollTop); //实时获取到滚动的值
			if (Object.scrollTop > 28) {
				this.scrrol = true;
				/* #ifdef APP-PLUS */
				/* #endif */
			} else if (Object.scrollTop < 28) {
				this.scrrol = false;
				/* #ifdef APP-PLUS */
				/* #endif */
			}
		},
		onReachBottom() {
		  var that = this;
		  that.page++;
		  // that.Net._get('shop_goods', {per_page:'10',page:that.page,}, res => {
		  //   if (res.code == 200) {
		  //     //console.log(res)
		  //     if (res.data.data == '') {
		  //       uni.showToast({
		  //         title: '已经是最后一页了',
		  //         duration: 2000,
		  //         icon: 'none'
		  //       });
		  //     } else {
		  //       that.info = that.info.concat(res.data.data); //将数据拼接在一起
		  //     }
		  //   } else if (res.code == 0) {
		  //     that.Msg.Success(res.msg, res => {});
		  //   }
		  // });
		},
	}
</script>

<style>
	
	.header{
		background-color: transparent !important;
	}
	
	.header .text{
		background-color: transparent !important;
		color: #333 !important;
	}
	
	.scrrolHeader{
		background-color: #F9E9E3 !important;
	}
	
	.bg_box{
		width: 100%;
		position: relative;
	}
	
	.bg_box .bg01{
		width: 100%;
	}
	
	.bg_box .bg_content{
		width: 92%;
		position: absolute;
		left: calc(50% - 46%);
		top: calc(13.5vw + var(--status-bar-height));
		z-index: 98;
	}
	
	.order_list{
		width: 90%;
		margin: 4% auto 0;
		background-color: #fff;
		padding: 4%;
		border-radius: 3vw 3vw 0 0;
		box-sizing: border-box;
	}
	
	.order_list .order_text{
		width: 100%;
		display: flex;
		align-items: center;
	}
	
	.order_list .order_text .order_menu{
		font-size: 3.5vw;
		color: #fff;
		background-color: #FC5D20;
		height: 9vw;
		border-radius: 9vw;
		width: 20vw;
		display: flex;
		align-items: center;
		justify-content: center;
		font-weight: bold;
	}
	
	.order_list .order_text .order_menu02{
		background-color: #FF4246;
	}
	
	.order_list .order_text .text_box{
		flex: 1;
	}
	
	.order_list .order_text .text_box .title_box{
		width: 100%;
		display: flex;
		align-items: center;
	}
	
	.order_list .order_text .text_box .title_box .title{
		font-size: 5vw;
		font-weight: bold;
		color: #333;
		margin-right: 3vw;
	}
	
	.order_list .order_text .text_box .title_box .type{
		height: 5vw;
		padding: 0 1.5vw;
		border-radius: 0.8vw;
		font-size: 3vw;
		letter-spacing: 1px;
		font-weight: bold;
		color: #fff;
		background-color: #5F6488;
		transform: skew(-15deg);
		display: flex;
		align-items: center;
	}
	
	.order_list .order_text .text_box .text{
		width: 100%;
		font-size: 3vw;
		color: #666666;
		margin-top: 2vw;
	}
	
	.order_list .order_text .order_img{
		width: 28vw;
		margin-left: 3vw;
	}
	
	.order_list .order_text .order_img image{
		width: 100%;
	}
	
	.appoint_box{
		width: 100%;
		background-color: #fff;
		border-radius: 3vw;
	}
	
	.appoint_box .appoint_text{
		width: 100%;
		padding: 6vw 5vw;
		display: flex;
		align-items: center;
	}
	
	.appoint_box .appoint_text .text_box{
		flex: 1;
	}
	
	.appoint_box .appoint_text .menu{
		width: 24vw;
		height: 10vw;
		line-height: 10vw;
		border-radius: 10vw;
		text-align: center;
		line-height: 10vw;
		font-size: 3.5vw;
		background-color: #fff;
		color: #FA6E0C;
	}
	
	.appoint_box .appoint_text .icon{
		font-size: 20vw;
		color: #D1D1D1;
	}
	
	.appoint_box .appoint_text .text_box .title{
		font-size: 3.5vw;
		color: #333;
	}
	
	.appoint_box .appoint_text .text_box .num{
		font-size: 7.5vw;
		color: #333;
		font-weight: bold;
		margin-top: 2vw;
	}
	
	.appoint_box .appoint_text .text_box .text{
		font-size: 3.5vw;
		color: #333;
		margin-top: 2vw;
	}
	
	.appoint_box .appoint_menu{
		width: 100%;
		background-color: #FC6E37;
		padding: 4% 0;
		border-radius: 0 0 3vw 3vw;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}
	
	.appoint_box .appoint_menu .menu{
		
	}
	
	.appoint_box .appoint_menu .menu .t{
		font-size: 3.3vw;
		color: #fff;
		text-align: center;
	}
	
	.appoint_box .appoint_menu .menu .n{
		font-size: 3.3vw;
		color: #fff;
		margin-top: 1vw;
		text-align: center;
	}
	
	.records_box{
		width: 100%;
		margin-top: 4%;
		background-color: #fff;
		padding: 0 4vw;
		border-radius: 3vw;
	}
	
	.records_menu{
		width: 100%;
		display: flex;
		align-items: center;
		height: 13vw;
		border-bottom: 1px solid #E0E4EC;
	}
	
	.records_menu .menu{
		width: 18vw;		
		height: 100%;
		line-height: 13vw;
		margin-right: 5vw;
		font-size: 4vw;
		color: #666666;
		text-align: center;
	}
	
	.menucolor{
		color: #333 !important;
		font-weight: bold;
		border-bottom: 3px solid #FC5D20;
	}
	
	.records_list{
		width: 100%;
		margin-top: 4%;
		background-color: #fff;
		padding: 5vw 0vw;
		border-radius: 3vw;
		display: flex;
		align-items: center;
	}
	
	.records_list .text_box{
		
	}
	
	.records_list .text_box:nth-child(1){
		flex: 0.6;
	}
	
	.records_list .text_box:nth-child(2){
		flex: 0.4;
	}
	
	.records_list .text_box .title{		
		display: flex;
		align-items: center;
	}
	
	.records_list .text_box .title .name{
		font-size: 4vw;
		color: #333;
		font-weight: bold;
	}
	
	.records_list .text_box .title .tag{
		font-size: 3vw;
		color: #B5B5B5;
		background-color: #F4F5F7;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .title .tag02{
		font-size: 3vw;
		color: #FC5D20;
		background-color: #FFF7F4;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .title .tag03{
		font-size: 3vw;
		color: #FF0005;
		background-color: #FFF2F2;
		height: 5vw;
		padding: 0 1vw;
		border-radius: 1vw;
		display: flex;
		align-items: center;
		margin-left: 2vw;
	}
	
	.records_list .text_box .time{
		font-size: 3.5vw;
		color: #999999;
		margin-top: 2vw;
	}
	
	.records_list .text_box .money{
		font-size: 3.8vw;
		color: #333;
		font-weight: bold;
		text-align: right;
	}
	
	.records_list .text_box .text{
		font-size: 3.5vw;
		color: #999999;
		margin-top: 2vw;
		text-align: right;
	}
	
	.footer_box{
		width: 100%;
		background-color: #fff;
		padding: 3vw 4%;
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 99;
		display: flex;
		align-items: center;
	}
	
	.footer_box .menu{
		flex: 1;
		height: 15vw;
		border-radius: 15vw;
	}
	
	.footer_box .menu:nth-child(1){
		margin-right: 4%;
		border: 1px solid #FC5D20;
	}
	
	.footer_box .menu:nth-child(2){
		background-color: #FC5D20;
	}
	
	.footer_box .menu .title{
		font-size: 3.6vw;
		color: #FC5D20;
		text-align: center;
		margin-top: 2vw;
		font-weight: bold;
	}
	
	.footer_box .menu .text{
		font-size: 3.3vw;
		color: #FC5D20;
		margin-top: 1vw;
		text-align: center;
	}
	
	.footer_box .menu:nth-child(2) .title{
		color: #fff;
	}
	
	.footer_box .menu:nth-child(2) .text{
		color: #fff;
	}
	
	
</style>
